import createCRUDService from '/common/utils/createCRUDService';
import { reqGet } from '@/helpers/request';
import { api } from './config';

/**
 * 切换 总账过账限制 状态
 * @param params
 * @param options
 * @returns {*}
 */
export async function toggleControl(params, options = {}) {
  return reqGet(api.toggleControlApi, params, options);
}

export default createCRUDService(api);
